Using Client versioning you can create folders in your S3 bucket. And in boto3 its a peice of cake and 3 lines of code.
Here is the code for doing so.
import boto3
s3 = boto3.client('s3')
bucket_name = "aniketbucketpython"
directory_name = "aniket/bucket/python" #it's name of your folders
s3.put_object(Bucket=bucket_name, Key=(directory_name+'/'))